-- GENERATED SPELL FOR [Gelkis Marauder] --


function spell0_4653(pUnit, Event) --@Berserker Stance,Self--
pUnit:FullCastSpellOnTarget(7366,pUnit)
pUnit:RegisterEvent('Sorts_4653', 693, 1)
end

function spell1_4653(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(845,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4653', 615, 1)
end

function Sorts_4653(pUnit, Event)
local choix_sorts_4653 = math.random(0, 1)
if choix_sorts_4653 == 0 then
pUnit:RegisterEvent('spell0_4653', 1, 1)
end
if choix_sorts_4653 == 1 then
pUnit:RegisterEvent('spell1_4653', 1, 1)
end
end

function mob4653_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4653', math.random(1500, 3000), 1)
end

function mob4653_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4653_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4653_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4653, 1, 'mob4653_Action')
RegisterUnitEvent(4653, 2, 'mob4653_Leave')
RegisterUnitEvent(4653, 3, 'mob4653_Kill')
RegisterUnitEvent(4653, 4, 'mob4653_Die')
